DISCORD_MIDJOURNEY_URL = '' #discord-mj-bot地址 
DISCORD_MIDJOURNEY_UPLOAD_URL = '' #discord-mj-bot地址 
CLIENT_CALLBACK_URL = '' #图片命令执行结果的回调地址
MODEL_KEYS={}
PROMPT_OPTIMZE_FLAG=0
def load(json_data):
    global DISCORD_MIDJOURNEY_URL
    DISCORD_MIDJOURNEY_URL = json_data['DISCORD_MIDJOURNEY_URL']

    global DISCORD_MIDJOURNEY_UPLOAD_URL
    DISCORD_MIDJOURNEY_UPLOAD_URL = json_data['DISCORD_MIDJOURNEY_UPLOAD_URL']
    

    global CLIENT_CALLBACK_URL
    CLIENT_CALLBACK_URL = json_data['CLIENT_CALLBACK_URL']

    global CLIENT_WX_CALLBACK_URL
    CLIENT_WX_CALLBACK_URL = json_data['CLIENT_WX_CALLBACK_URL']
    
    global MODEL_KEYS
    MODEL_KEYS = json_data['MODEL_KEYS']
    
    global PROMPT_OPTIMZE_FLAG
    PROMPT_OPTIMZE_FLAG = json_data['PROMPT_OPTIMZE_FLAG']
    #print(f'PROMPT_OPTIMZE_FLAG:{PROMPT_OPTIMZE_FLAG}')
